if (objtype == OSTREE_OBJECT_TYPE_FILE)
{
- if (!gs_file_get_all_xattrs (f, &xattrs, cancellable, error))
+ if (!glnx_dfd_name_get_all_xattrs (AT_FDCWD, gs_file_get_path_cached (f),
+ &xattrs, cancellable, error))
goto out;
}
if (!(flags & OSTREE_DIFF_FLAGS_IGNORE_XATTRS))
{
- if (!gs_file_get_all_xattrs (f, &xattrs, cancellable, error))
+ if (!glnx_dfd_name_get_all_xattrs (AT_FDCWD, gs_file_get_path_cached (f),
+ &xattrs, cancellable, error))
goto out;
}
if (xattrs)
{
- if (!gs_fd_set_all_xattrs (fd, xattrs, cancellable, error))
+ if (!glnx_fd_set_all_xattrs (fd, xattrs, cancellable, error))
goto out;
}
}
if (xattrs)
{
- if (!gs_dfd_and_name_set_all_xattrs (destination_dfd, destination_name,
+ if (!glnx_dfd_name_set_all_xattrs (destination_dfd, destination_name,
xattrs, cancellable, error))
goto out;
}
if (xattrs)
{
- if (!gs_dfd_and_name_set_all_xattrs (destination_dfd, temp_filename,
+ if (!glnx_dfd_name_set_all_xattrs (destination_dfd, temp_filename,
xattrs, cancellable, error))
goto out;
}
if (xattrs)
{
- if (!gs_fd_set_all_xattrs (destination_dfd, xattrs, cancellable, error))
+ if (!glnx_fd_set_all_xattrs (destination_dfd, xattrs, cancellable, error))
goto out;
}
}
if (xattrs != NULL)
{
- if (!gs_dfd_and_name_set_all_xattrs (self->tmp_dir_fd, temp_filename,
+ if (!glnx_dfd_name_set_all_xattrs (self->tmp_dir_fd, temp_filename,
xattrs, cancellable, error))
goto out;
}
if (xattrs)
{
- if (!gs_fd_set_all_xattrs (fd, xattrs, cancellable, error))
+ if (!glnx_fd_set_all_xattrs (fd, xattrs, cancellable, error))
goto out;
}
}
{
if (path)
{
- if (!gs_file_get_all_xattrs (path, &ret_xattrs, cancellable, error))
+ if (!glnx_dfd_name_get_all_xattrs (AT_FDCWD, gs_file_get_path_cached (path),
+ &ret_xattrs, cancellable, error))
goto out;
}
else if (dfd_subpath == NULL)
{
g_assert (dfd != -1);
- if (!gs_fd_get_all_xattrs (dfd, &ret_xattrs,
+ if (!glnx_fd_get_all_xattrs (dfd, &ret_xattrs,
cancellable, error))
goto out;
}
else
{
g_assert (dfd != -1);
- if (!gs_dfd_and_name_get_all_xattrs (dfd, dfd_subpath, &ret_xattrs,
+ if (!glnx_dfd_name_get_all_xattrs (dfd, dfd_subpath, &ret_xattrs,
cancellable, error))
goto out;
}
if (out_xattrs)
{
- if (!gs_fd_get_all_xattrs (fd, &ret_xattrs,
+ if (!glnx_fd_get_all_xattrs (fd, &ret_xattrs,
cancellable, error))
goto out;
}
else if (g_file_info_get_file_type (ret_file_info) == G_FILE_TYPE_SYMBOLIC_LINK
&& out_xattrs)
{
- if (!gs_dfd_and_name_get_all_xattrs (self->objects_dir_fd, loose_path_buf,
+ if (!glnx_dfd_name_get_all_xattrs (self->objects_dir_fd, loose_path_buf,
&ret_xattrs,
cancellable, error))
goto out;
* right. This will allow other users access if they have ACLs, but
* oh well.
*/
- if (!gs_dfd_and_name_get_all_xattrs (src_parent_dfd, src_name,
+ if (!glnx_dfd_name_get_all_xattrs (src_parent_dfd, src_name,
&xattrs, cancellable, error))
goto out;
- if (!gs_fd_set_all_xattrs (dest_dfd, xattrs,
+ if (!glnx_fd_set_all_xattrs (dest_dfd, xattrs,
cancellable, error))
goto out;